import { axios } from '@/utils/request';
export function get(id) {
    return axios({
        url: 'dev/autoform/get/' + id,
        method: 'get'
    });
}
export function getByModelId(id) {
    return axios({
        url: 'dev/autoform/getByModelId/' + id,
        method: 'get'
    });
}
export function page(params) {
    return axios({
        url: 'dev/autoform/page',
        method: 'get',
        params
    });
}
export function all(params) {
    return axios({
        url: 'dev/autoform/all',
        method: 'get',
        params
    });
}
export function create(data) {
    return axios({
        url: 'dev/autoform/create',
        method: 'post',
        data
    });
}
export function update(data) {
    return axios({
        url: 'dev/autoform/update',
        method: 'put',
        data
    });
}
export function deleteBatch(ids) {
    return axios({
        url: 'dev/autoform/delete/' + ids,
        method: 'delete'
    });
}
